package designPattern.DecoratorPattern.Decorator;

import designPattern.DecoratorPattern.Shape.Shape;

/**
 * fileName: ShapeDecorator
 * description: 实现了 Shape 接口的抽象装饰类
 *
 * @author lihaogn-main
 * @version 1.0
 * @date 2019/9/12 15:00
 */
public class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        decoratedShape.draw();
    }
}
